<style scoped>
.government-job {
  background-image: url("./../assets/bg.jpg");
  background-size: 60%;
  padding: 14px 10px 4px 10px;
  margin-bottom: 20px;
  box-shadow: 0px 0px 5px #ff786c;
}

.government-job .content {
  background-color: #fff;
  border: 1px dashed #ff786c;
  padding: 0px 10px 0;
}

.government-job .job-title {
  background-color: #ff786c;
  color: #fff;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  margin-top: 3px;
  margin-bottom: 20px;
  padding: 4px;
  font-weight: bold;
  text-align: center;
  letter-spacing: 2px;
  box-shadow: 0 0 0 2px #fafafa, 0 0 0 4px #ff786c;
}

.government-job .content-item {
  margin-bottom: 18px;
  padding: 0 8px;
}

.government-job .content-item .title {
  color: #757a7c;
  font-size: 13px;
  position: relative;
  font-weight: bold;
  display: flex;
  align-items: center;
}

.government-job .content-item .context {
  font-size: 12px;
  color: #657b83;
}

.triangle-right {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-left: 10px solid #757a7c;
  border-bottom: 5px solid transparent;
  margin-right: 6px;
}

.government-job .footer {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.government-job .footer .tag {
  padding: 2px 8px;
  color: #ff786c;
  border: 1px dashed #ff786c;
  border-style: solid;
  border-radius: 4px;
  font-size: 12px;
  background-color: #ffff;
  margin-right: 4px;
}
</style>

<template>
  <div class="government-job">
    <div class="content">
      <div class="job-title">{{ job.title }}</div>
      <div class="content-item" v-for="(paragraph,i) in job.paragraphList" :key="i">
        <div class="title">
          <div class="triangle-right"></div>
          <span>{{ paragraph.title }}</span>
        </div>
        <div class="context" v-html="paragraph.context"></div>
      </div>
    </div>
    <div class="footer">
      <div class="tag">公职招聘</div>
      <div class="tag">#oid</div>
      <div class="tag">
        {{ job.cutoffTime | momentFormat("YYYY-MM-DD") }}截止
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: "PreviewGoverment",
  props: {
    job: Object
  }
};
</script>
